.container {
  background-color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
}

// 公共表格
.el-table {
  th {
    &.gutter {
      display: table-cell!important;
    }
  }
  colgroup {
    &.gutter {
      display: table-cell!important;
    }
  }
}

.app-container {
  position: initial !important;
  // height: 100%;
  height: calc(100% - 50px);
  overflow-y: scroll;
  &.list {
    position: relative !important;
    height: 100%;
  }

  // Table
  .table-wrap {
  // .table_list {
    height: calc(100vh - 210px) !important;
    &.double {
      &.el-table {
        .el-table__body-wrapper {
          .el-table__expanded-cell {
            &>div {
              &:first-of-type {
                .el-table__header-wrapper {
                  display: block !important;
                }
              }
            }
            .el-table__header-wrapper {
              display: none;
            }
          }
        }
      }
      &.excel {
        &.el-table {
          .el-table__body-wrapper {
            .el-table__expanded-cell {
              &>div {
                &:nth-child(2) {
                  .el-table__header-wrapper {
                    display: block !important;
                  }
                }
              }
            }
          }
        }
      }
    }
    &.el-table {
      td, th {
        // border-bottom: none;
        // padding: 12px 0;
        padding: 8px 0;
        &.is-left {
          text-align: left;
        }
      }
      .el-table__fixed-header-wrapper {
        th {
          padding: 10px 0;
        }
      }
      .el-table__header-wrapper {
        th {
          padding: 10px 0;
        }
      }
      .el-table__footer-wrapper {
        tbody {
          td {
            // background-color: #f0f9eb;
            background-color: #F5F7FA;
          }
        }
      }
      td {
        &.el-table__expanded-cell {
          background-color: #f8f8f9;
          padding: 20px 50px;
          &:hover {
            background-color: #f8f8f9 !important;
          }
        }
        .el-table {
          border-radius: 4px;
          box-shadow: 0 1px 5px #ddd;
        }
      }
      th {
        background-color: #f8f8f9;
      }
      .el-table__row {
        .cell {
          font-size: 12px !important;
        }
      }
    }
    .el-link {
      .el-link--inner {
        font-size: 12px;
      }
    }
    .el-table__footer {
      td {
        padding:0px;
      }
    }
  }

  // 详情页
  &.details {
    background-color: #f6f8fa;
    * {
      box-sizing: border-box;
    }
    .header {
      position: relative;
      width: 100%;
      padding: 15px;
      background-color: #ffffff;
      .title {
        position: relative;
        // display: flex;
        // justify-content: space-between;
        box-sizing: border-box;
        overflow: hidden;
        height: 32px;
        margin: 0;
        // padding-left: 30px;
        line-height: 32px;
        white-space: pre-wrap;
        font-size: 18px;
        // font-weight: 400;
        // color: #333940;
        // zn
        font-weight: bold;
        color: #265bc6;
        span {
          color: #8fa1b2;
        }
      }
      .icon {
        width: 50px;
        height: 50px;
        font-size: 35px;
      }
      .info {
        ul {
          display: flex;
          flex-wrap: wrap;
          width: 100%;
          padding-left: 60px;
          text-align: left;
          line-height: 1.5;
          color: #16325c;
        }
      }
      .col {
        width: 20%;
        text-align: left;
        box-sizing: border-box;
        border-right: 8px solid #fff;
        font-size: 14px;
        color: #475059;
        .item {
          margin: 7px 0 -3px 0;
        }
      }
      .label {
        width: 100%;
        margin-bottom: 5px;
        text-transform: uppercase;
        // font-size: 12px;
        // color: #8fa1b2;
        font-weight: bold;
        // zn
        font-size: 14px;
        color: #265bc6;
      }
      .value {
        min-height: 22px;
      }
      .menu {
        position: absolute;
        top: 15px;
        right: 15px;
      }
    }
    .main {
      background-color: #fff;
      .section {
        padding: 10px 20px 20px;
        border-bottom: 1px dashed #e5e5e5;
        .subtitle {
          margin: 0;
          margin-bottom: 10px;
          font-size: 14px;
          color: #5a5e66;
        }
        .more {
          margin-left: 5px;
          font-size: 12px;
          color: #8fa1b2;
          cursor: pointer;
        }
      }
      .subtitle {
        margin: 0;
        margin-bottom: 10px;
        font-size: 14px;
        color: #5a5e66;
      }
      .more {
        margin-left: 5px;
        font-size: 12px;
        color: #8fa1b2;
        cursor: pointer;
      }
      .required {
        position: absolute;
        top: -27px;
        left: -10px;
      }
    }
    // HotTable
    .handsontable {
      height: auto !important;
      // max-height: 374px;
      // max-height: 385px;
      .ht_master {
        .wtHolder {
          height: auto !important;
        }
        thead {
          visibility: visible !important;
        }
        tr {
          th {
            visibility: visible !important;
          }
        }
      }
      .ht_clone_left {
        thead {
          visibility: visible !important;
        }
      }
      thead {
        th {
          .relative {
            padding: 5px;
          }
        }
      }
      span {
        &.colHeader {
          line-height: 23px;
          height: 23px;
          font-weight: bold;
        }
      }
      .htDimmed {
        background-color: #ebeff2 !important;
      }
      .htUIInput {
        &.htUIButtonOK {
          input {
            background-color: #0f9d58 !important;
          }
        }
      }
      .changeType {
        margin: 5px 1px 0 5px;
      }
    }
    // Card
    .el-card {
      border-radius: 0;
      .el-card__body {
        padding: 0 !important;
      }
    }
    // Tab
    .el-tabs {
      .el-tabs__header  {
        margin: 0;
        .el-tabs__nav-wrap {
          margin-bottom: -5px;
        }
        .el-tabs__nav {
          border: none;
        }
        .el-tabs__item {
          max-width: 300px;
          height: 35px;
          padding: 9px 25px 7px 25px;
          line-height: inherit;
          border-left: none;
          border-right: 1px solid #dfe4ed;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          font-weight: normal;
          &:hover {
            // zn
            color: #265bc6;
          }
          &.is-active {
            border-top: none !important;
            // box-shadow: inset 0 2px 0 #00aaef;
            font-weight: 500;
            // zn
            box-shadow: inset 0 2px 0 #265bc6;
            color: #265bc6;
            font-size: 15px;
          }
        }
      }
      .el-tabs__content {
        overflow: initial !important;
      }
    }
    // Collapse
    .el-collapse {
      border-top: none;
      border-bottom: none;
      .el-collapse-item {
        padding: 10px 20px 20px;
        border-bottom: 1px dashed #e5e5e5;
        &:last-child {
          border-bottom: none;
        }
        .el-collapse-item__header {
          border-bottom: none;
          font-size: 14px !important;
          color: #5a5e66;
        }
        .el-collapse-item__arrow {
          margin-left: 5px !important;
        }
      }
      .el-collapse-item__wrap {
        border-bottom: none;
        overflow: initial !important;
      }
    }
    // Form
    .el-form {
      display: flex;
      flex-wrap: wrap;
      .el-form-item {
        float: left;
        width: 20%;
        margin: 0;
        // padding: 7px 15px;
        // // margin-right: 10px;
        // margin-bottom: 10px;
        // border-right: 10px solid #fff;
        // border-bottom: 10px solid #fff;
        // zn
        padding: 0 15px;
        margin-bottom: 0;
        cursor: pointer;
        &:last-of-type {
          width: auto;
          min-width: 20%;
        }
        &:hover {
          background-color: #f2f4f7 !important;
          border-radius: 5px;
        }
        &.isEditable {
          &:hover {
            .icon {
              display: block;
              position: absolute;
              right: 20px;
              top: 50%;
              transform: translateY(-50%);
              color: #8fa1b2;
            }
          }
        }
        .icon {
          display: none;
        }
        .el-form-item__label {
          width: 100%;
          height: auto;
          // line-height: 12px;
          // font-size: 12px;
          // color: #8fa1b2;
          font-weight: bold;
          line-height: 14px; // zn
          font-size: 14px;
          color: #265bc6;
        }
        .el-form-item__content {
          width: 100%;
        }
        .el-link, p {
          position: relative;
          width: 100%;
          height: auto;
          min-height: 38px;
          margin: 0;
          padding-right: 20px;
          line-height: 35px;
          word-wrap: break-word;
          overflow: hidden;
          font-size: 14px;
          color: #333940;
        }
        p {
          cursor: text;
        }
        .el-link {
          display: block;
          padding-left: 5px;
          color: #39c;
        }
      }
    }
    // 底部栏
    .fixed-wrap {
      position: absolute;
      bottom: 0;
      right: 0;
      width: 100%;
      // width: calc(100% - 210px);
      height: 70px;
      background-color: #F5F7FA;
      z-index: 999;
      .content-wrap {
        width: 100%;
        height: 100%;
        padding: 10px 20px;
        box-sizing: border-box;
      }
      .left-group {
        position: absolute;
        left: 20px;
        // left: 220px;
        top: 50%;
        transform: translateY(-50%);
        width: calc(100% - 640px);
        font-size: 13px;
        font-weight: 700;
        color: #606266;
        .total {
          line-height: 50px;
          font-size: 13px;
        }
      }
      .account {
        width: calc(100% - 130px);
        .text {
          .item {
            margin-right: 20px;
            line-height: 50px;
            font-size: 13px;
            font-weight: 700;
            color: rgb(48, 49, 51);;
            overflow: hidden;
            vertical-align: middle;
            &:last-child {
              margin-right: 0;
            }
            span {
              font-size: 18px;
              color: #FF8D00;
            }
          }
        }
      }
      // .card-wrap {
      //   width: calc(100% - 80px);
      // }
      .card-panel {
        height: 50px;
        padding: 7px;
        background-color: #ebeff2;
        border-radius: 5px;
        text-align: center;
        font-weight: 700;
        box-sizing: border-box;
        letter-spacing: 0.5px;
        &.customer {
          .desc {
            color: #606266;
          }
        }
        .title {
          line-height: 16px;
          color: rgba(0,0,0,.45);
          font-size: 13px;
          margin-bottom: 5px;
        }
        .desc {
          text-align: left;
          font-size: 16px;
          color: #606266;
          &.orange {
            color: #FF8D00;
          }
        }
      }
      .right-group {
        display: inline-block;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        // line-height: 40px;
      }
    }
  }
}

// Dialog
.el-dialog__wrapper {
  .el-dialog {
    .el-dialog__body {
      // padding: 0;
      > .app-container {
        padding: 0;
        position: relative !important;
        .app-container {
          padding: 0;
        }
      }
    }
  }
}

// 媒体查询
@media screen and (max-width: 1680px) {
  // 全局缩放75%
  .zoom-75 {
    zoom: 75%;
    .el-dropdown-menu {
      zoom: 103%;
      &.zoom {
        zoom: 101% !important;
      }
    }
    // .el-popover {
    //   zoom: 105%;
    // }
    .main-container {
      height: 100% !important;
    }
    .app-main {
      height: calc(100% - 84px) !important;
      .dashboard-container { // 首页
        height: 100% !important;
        .dashboard-editor-container {
          height: 100% !important;
        }
      }
    }
    .app-container {
      &.details {
        .table-wrap {
          height: calc(100vh - 209px) !important;
        }
      }
      .dynamic-table {
        height: calc(100% - 85px) !important;
      }
      .table-wrap {
        height: 100% !important;
      }
    }
  }
}

// 媒体查询
@media screen and (max-width: 1530px) {
  .app-container {
    // 详情页
    &.details {
      // 底部栏
      .fixed-wrap {
        .account {
          width: calc(100% - 50px);
        }
      }
    }
  }
}

// 媒体查询
@media screen and (max-width: 1440px) {
  .app-container {
    // 详情页
    &.details {
      // Form
      .el-form {
        .el-form-item {
          &.isEditable {
            &:hover {
              .icon {
                right: 5px;
              }
            }
          }
        }
      }
    }
  }
}
